package com.michau.testitas.common.service;

import com.michau.testitas.common.model.answer.Answer;
import com.michau.testitas.common.model.definition.Definition;
import com.michau.testitas.common.model.testentity.TestEntity;

import java.util.List;
import java.util.Set;

/**
 * User: michau
 * Date: 3/1/13
 * Time: 4:56 PM
 */
public interface TestEntityService {

    public TestEntity getById(long id);

    public TestEntity getByTransferKey(String transferKey);

    public Set<TestEntity> getAll();

    public TestEntity create(TestEntity testEntity);

    public void createOrUpdate(TestEntity testEntity);

    public void copy(TestEntity fromTestEntity, TestEntity toTestEntity);

    public void update(TestEntity testEntity);

    public void delete(TestEntity... testEntity);

    public void deleteAll();

}
